package cn.waxcc.controller;

import cn.waxcc.pojo.BsDoctor;
import cn.waxcc.service.BsDoctorService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @program: springboot-medicalapp
 * @ClassName BsDoctorController
 * @description:
 * @author: JYF
 * @create: 2023-04-07 14:08
 * @Version 1.0
 */
@Api(tags = "医生列表")
@Controller
@CrossOrigin(origins = "*")
public class BsDoctorController {

    @Autowired
    private BsDoctorService bsDoctorService;

    @RequestMapping("/bdtest")
    @ResponseBody
    public List<BsDoctor> bdtest() {
        return bsDoctorService.queryBsDoctorBydName();
    }
}
